﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UPMS.Core.Domain
{
    public class Account : DomainBase
    {
        [Display(Name = "Account"), Required, MinLength(4), MaxLength(64), StringLength(64)]
        public virtual string Name { get; set; }
        [Display(Name = "Password"), Required, MinLength(6), MaxLength(128), StringLength(128)]
        public virtual string Password { get; set; }
        [Display(Name = "Application")]
        public virtual Guid? ApplicationId { get; set; }
        public virtual Application Application { get; set; }
        public virtual Byte Status { get; set; }
        public virtual IList<Role> Roles { get; set; }
        public virtual IList<Group> Groups { get; set; }
        public virtual IList<User> Users { get; set; }
    }
}
